﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>订单-统包</title>
       @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link rel="stylesheet" href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get"/>
        <style type="text/css">
			.subnavbar{ display: block;}
			.subnavbar{ background: #fff; padding-bottom: 0 !important;}   
			/*回到顶部*/
			.top_box { width: 50px; height: 50px; position: fixed; bottom: 44px; right: 20px; border: 1px solid #68a32b;  background-color: #ccc; text-align: center; 
			cursor: pointer; padding: 4px; box-sizing: border-box; z-index: 111111111111;}
			.top_box:hover { background-color: #68a32b; color: #fff; }     	
        </style>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>			 
			                <h2>订单-统包</h2>
			            </header>			
			            @Html.Partial("Teammenu")
			              @* 订单商品种类筛选start *@
		           		 <!--导航栏start-->
						<div class="wrapper wrapper01" id="retr">
							<div class="scroller">
								<ul class="clearfix" id="categories">
									<li><a href="/Team/Order">裸钻</a></li>
									<li><a href="/Team/ParcelOrder">统包</a></li>
				                     <li><a href="/Team/RingOrder">成品</a></li>
				                     <li><a href="/Team/GemOrder">彩宝</a></li>
				                     <li><a href="/Team/EmeraldOrder">翡翠</a></li>
				                     <li><a href="#">黄金</a></li>
								</ul>
							</div>
						</div>
						<!--导航栏end-->
		             @* 订单商品种类筛选end *@		             
		              <!--二级导航-->
			    	<div class="subnavbar orderBar">
			    	 <div class="check_btn_box buttons-row" >
                    	<ul class="check_list">
	                        <li class="team_parcels_btn_transfer" style="display:none">
	                            <button class="search_btn_b ModifyPurchaseUserID" onclick='ModifyPurchaseUserID_Js()' title="选采购" disabled="disabled">选采购</button>
	                        </li>
	                        <li class="team_parcels_btn_revise" style="display:none">
	                            <button class="search_btn_b ReviseOrders" onclick='ReviseOrders_Js()' title="退点或打折优惠" disabled="disabled">优惠</button>
	                        </li>
	                        <li class="team_parcels_btn_arrived" style="display:none">
	                            <button class="search_btn_b ArrivalOrders" onclick="ArrivalOrders_Js()" title="确认到货，入库" disabled="disabled">确认到货</button>
	                        </li>
	                        <li class="team_parcels_btn_cancel_arrived" style="display:none">
	                            <button class="search_btn_b CancelArrivalOrders" onclick="CancelArrivalOrders_Js()" title="取消到货" disabled="disabled">取消到货</button>
	                        </li>
	                        <li class="team_parcels_btn_pay" style="display:none">
	                            <button class="search_btn_b ReceiptOrders" title="支付买货款"  disabled="disabled">付款</button> <!-- onclick='ReceiptOrders_Js()' -->
	                        </li>
	                        @*<li class="exchange"  style="display: none;">
	                            <button class="search_btn_b ExchangeOrders" onclick='ExchangeOrders_Js()' title="修改采购汇率" disabled="disabled">采购汇率</button>
	                        </li>*@
	                        <li class="team_parcels_btn_freight"  style="display:none">
	                            <button class="search_btn_b ModFreight" onclick='ModFreight_Js()' title="修改运费" disabled="disabled">运费</button>
	                        </li>
	                        <li class="team_parcels_btn_invalid" style="display:none">
	                            <button class="search_btn_b CancelOrders" onclick='CancelOrders_Js()' title="订单作废" disabled="disabled">作废</button>
	                        </li>
	                        <li class="team_parcels_btn_prepare" style="display:none">
	                            <button class="search_btn_b AddShip" onclick="AddShip_Js();" title="预先制作出货单" disabled="disabled">制单</button>
	                        </li>
	                        <li class="team_parcels_btn_ship" style="display:none">
	                            <button class="search_btn_b EditShip" onclick='EditShip_Js()' title="订单出货" disabled="disabled">出货</button><!--EditShip 在ordertablecheck.js -->
	                        </li>
	                        <!--<li class="print" >
	                            <button class="search_btn_b PrintShip" onclick='PrintShip()' title="打印出货单" disabled="disabled">打单</button>
	                        </li>-->
	                        <li class="team_parcels_btn_receipt" style="display:none">
	                            <button class="search_btn_b AddBill" id="AddBill" title="支付卖货款" disabled="disabled">收款</button> <!-- onclick='PayOrders_Js()' -->
	                        </li>
	                        <li class="team_parcels_btn_stock" style="display:none">
	                            <button class="search_btn_b StockOrders"  title="同一客户订单自留成现货" disabled="disabled" onclick='StockOrders_Js()'>自留变现</button> <!--onclick='StockOrders_Js()' -->
	                        </li>
	                        <li class="team_parcels_btn_back" style="display:none">
	                            <button class="search_btn_b ReturnOrders" title="同一客户订单退回供应商" disabled="disabled" onclick='ReturnOrders_Js()'>退回供应商</button><!--onclick='ReturnOrders_Js()' -->
	                        </li>
	                        <li class="team_parcels_btn_del" style="display:none">
	                            <button class="search_btn_b DelOrders" onclick='DelOrders_Js()' title="删除已作废订单" disabled="disabled">删除</button>
	                        </li>
	                        <li class="team_parcels_btn_RemarkOrder" style="display:none">
	                            <button class="search_btn_b RemarkOrder" onclick='RemarkOrder_Js()' title="客户/业务/采购/物流备注" disabled="disabled">备注</button>
	                        </li>
	                        <li><span id="order_term_btn" class="add_blue">筛选</span> </li>
	                    </ul>                    
                	</div>
                	<div class="choose_status">当前选择订单状态为：<span id="choose_orderstatus"></span></div>
			    </div>			    			             
					</div>
			  </div> 			   
			    <!--工具栏start-->
				<div class="toolbar">
					<div class="toolbar-inner order-handle">
		            	<div>
		                 	<label class="choose_lable"><span class="checkbox" id="checkbox_check_all"></span><span class="label_name">全选</span></label>
		                </div>
		                <div class="order-choose-detail">
		                    <span class="total-price CurrentRMB" >买￥：<b id="check-total-price">0</b></span>
				            <span class="total-price CurrentUSD" >买$：<b id="check-total-price-usd">0</b></span>
		                </div>
		            </div>
				</div>
				<!--工具栏end-->
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
						<div class="page-content" id="app_no_header">
							<!--内容区start-->  
				             @* 订单列start *@
				            <div id="order" class="team_order">
				                 <div class="order-list" style="display: block;">			                 	
				                 	<ol id="order_list">
				                 		
				                 	</ol>				       				        
								</div>							
							</div>
		                 @* 订单列end *@       
		                <!--内容区end-->				            
        			 </div>
		        </div>
		    </div>
		       
		@*弹框start*@
		
		<!-- 订单转移start --->
		<div class="popup ModifyPurchaseUserID_box">
        <!--<div class="pop_box_bg ModifyPurchaseUserID_box">-->
            <!-- w1  -->
            <div class="pop pop-radius">
            	<span class="colse_popbox close-popup">X</span>
                <h5>转移订单</h5>
                <form class="form-inline _transfer" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
                	<div>
	                    <label class="checkbox-inline">选择采购：</label>
	                    <select class="form-control list_search" id="_purchasesUserIDs" name="PurchasesUserID"></select>
                    </div>
                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
	                    <input type="submit" class="btn btn-danger supbtn" value="确定" />                 <!-- onclick="ModifyPurchaseUserID();" -->
                	</div>
                </form>
            </div>
        </div>
        <!-- 订单转移end --->
		
		<!-- 批量调价start-->
		<div class="popup ReviseOrders_box">
        <!--<div class="pop_box_bg ReviseOrders_box">-->
            <div class="pop pop-radius">
            	<span class="colse_popbox close-popup">X</span>
                <h5>批量优惠</h5>
                <form class="form-inline _revise" style="padding: 5px 5px 5px 30px;" method="post" id="_revise">
                    <div class="form-group">
                        <label for="SalesExchangerate">销售汇率：</label>
                        <input type="text" class="form-control" id="_salesExchangerate" name="SalesExchangerate" placeholder="必填" />
                    </div>
                    <div class="form-group" style="display: none;">
                       <input type="radio" class="form-control" name="mode" value="0"  checked="checked" id="Discount_check" onchange="DiscountEvent()" />优惠折扣
                    </div>
                    <div class="form-group">
                        <label for="Discount">优惠折扣：</label>
                        <input type="text" class="form-control" id="_discount" value="1" name="Discount" placeholder="打85折输入0.85" />
                    </div>
                    <div class="confirm">
		            	<input type="button" class="btn btn-danger supbtn cancel_btn cancel close-popup" value="取消" name="cancel_btn"/>
		            	<input type="submit" class="btn btn-danger supbtn" value="确定"/>              
		            	<input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" /> 
		            </div>                    <!-- onclick="ReviseOrders();" -->
                </form>
            </div>
        </div>
        <!--批量调价end -->
		
		<!-- 订单到货start --->
		<div class="popup ArrivalOrders_box">
		<!--<div class="pop_box_bg ArrivalOrders_box">-->
		    <div class="pop pop-radius">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>确认到货</h5>
		        <form class="form-inline _arrival" style="padding: 5px 5px 5px 30px;" id="_arrival" method="post">
		            <div class="form-group" id="arrival_box">
		                <label for="Arrivaltime">到货日期：</label>
		                <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="Arrivaltime" placeholder="选择日期" readonly id="_arrivaltime_" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
		            </div>
		            <!-- onclick="ArrivalOrders()"-->
		            <div class="confirm">
			            <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定" />               <!-- onclick="ModifyPurchaseUserID();" -->
		            </div>
		        </form>
		    </div>
		</div>
		<!-- 订单到货end --->
		
		<!-- 付款start-->
		<div class="popup ReceiptOrders_box">
		<!--<div class="pop_box_bg ReceiptOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>付款</h5>
		        <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_receipt">
		            <div>
		                <label>应付金额：</label>
		                <label class="checkbox-inline">
		                    <b class="check_third" style="font-weight: bold; color: red;">0</b>￥ 或
		                    <b class="check_four" style="font-weight: bold; color: red;">0</b>$
		                </label>
		            </div>
		            <br />
		            <div>
		                <label for="BankID">付款账户：</label>
		                <select id="_receiptBankID" class="form-control list_search" name="BankID" required="required"></select>
		                <!-- <a title="部分付款" onclick="PayAmountNum();">部分付</a> -->
		            </div>
		            <!-- <br /> -->
		            <!-- <div class="receiptNum">
		                <label for="ReceiptAmount">部分金额：</label>
		                <label class="checkbox-inline">
		                    <input type="number" required="required" class="form-control" name="ReceiptAmount" placeholder="付款金额(正数)" id="_receiptAmount" disabled/>
		                </label>
		            </div> -->

		            <br />
		            	<label for="ArrivalTime">付款日期：</label>
		            	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="选择日期" readonly id="receiptarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
		                <!--<input type="date" class="date_input time_input" id="receiptarrivalTime" required="required" name="ArrivalTime" />-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
		            	<input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
		            	<input type="submit" class="btn btn-danger supbtn" value="确定" /><!--onclick="ReceiptOrders()"-->
		                 </div>
		            <!-- <em>默认'全部付'，如需'部分付'，请点击【部分付】- 输入【部分金额】，'部分付'仅允许选中1条订单</em> -->
		            <em>默认'全部付'</em>
		        </form>
		    </div>
		</div>
		<!--付款end --> 
		
			 <!-- 单个调价start-->
			 <div class="popup ReviseAnOrder_box">
        <!--<div class="pop_box_bg ReviseAnOrder_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改售价</h5>
                <form class="form-inline _reviseOrder" method="post" id="_reviseOrder">
                    <div class="form-group" style="display: none">
                        <label for="OrderID">销售汇率：</label>
                        <input type="text" class="form-control"  id="_anorderid" name="OrderID" placeholder="订单号" />
                    </div>
                    <div class="form-group">
                        <label for="SalesExchangerate">销售汇率：</label>
                        <input type="text" class="form-control"  id="_salesRate" name="SalesExchangerate" placeholder="必填" />
                    </div>
                    <div class="form-group" style="display: none;">
                       <input type="radio" class="form-control"  name="model" value="0" checked="checked"/>￥/Pcs
                    </div>
                    <div class="form-group CurrentRMB" id="ConfirmPrice_box_">
                        <label for="ConfirmPrice">￥/Pcs：</label>
                        <input type="text" class="form-control"  id="_confirmPrice" name="ConfirmPrice" placeholder="人民币总价"/>
                    </div>
                    <div class="form-group CurrentUSD" id="BEFPrice_box_">
                        <label for="BEFPrice_box">$/Pcs：</label>
                        <input type="text" class="form-control"  id="_BEFPrice" name="BEFPrice_box" placeholder="美币总价" />
                    </div>
                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" name="qx_"/>
	                    <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;"/>
	                    <input type="submit" class="btn btn-danger supbtn" value="确定" />                    <!-- onclick="ReviseAnOrder();" -->
	                    <b id="_reviseanorderResult" style="color: red"></b>
                    </div>
                </form>
            </div>
        </div>
        <!--单个调价end -->
			
        
        <!-- 订单备注start-->
        <div class="popup RemarkOrder_box">
        <!--<div class="pop_box_bg RemarkOrder_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>备注订单</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                	<div class="form-group clearfix">
                		<label for="Remarks" class="Remark-textarea">客户备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_remarks" placeholder="客户说点啥？" name="Remarks"></textarea>
                	</div>
					<div class="form-group clearfix">
                   		 <label for="SalesRemarks" class="Remark-textarea">业务备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_salesRemarks" placeholder="业务说点啥？" name="SalesRemarks"></textarea>
					</div>
					<div class="form-group clearfix">
                    	<label for="PurchaseRemarks" class="Remark-textarea">采购备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_purchaseRemarks" placeholder="采购说点啥？" name="PurchaseRemarks"></textarea>
                   </div>
                    <div class="form-group clearfix">
                    	<label for="GoodsRemark" class="Remark-textarea">物流备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_goodsRemark" placeholder="物流说点啥？" name="GoodsRemark"></textarea>
                    </div>
                    <div class="confirm">
                    	<input type="reset" class="btn btn-danger supbtn" value="重置" style="margin-left: 70px;" />
                    	<input type="button" class="btn btn-danger supbtn" value="确定" onclick="RemarkOrder();" /><br />
                    </div>
                    <em>备注为追加</em>
                </form>
            </div>
        </div>
        <!--订单备注end -->

		<!-- 订单作废start-->
		<div class="popup CancelOrders_box">
		<!--<div class="pop_box_bg CancelOrders_box">-->
		    <div class="pop pop-radius">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>作废订单</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_invalid">
		            <div class="form-group clearfix">
		            	<label for="SalesRemarks" class="purchase-textarea">业务备注：</label>
		                <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_cancelRemarks" placeholder="详细描述作废原因" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!-- onclick="CancelOrders()"-->
		            <div class="confirm">
			            <input type="reset" class="btn btn-danger supbtn" value="重置"/ style="display: none;">
			            <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>
		        </form>
		    </div>
		</div>
		<!--订单作废end -->
        
         <!-- 订单自留start-->
         <div class="popup StockOrders_box">
		<!--<div class="pop_box_bg StockOrders_box">-->
		    <div class="pop pop-radius">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>自留变现</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_stock">
		        	
		            <label class="checkbox-inline" style="display: none;">
		                <b id="_stockCustomerID"></b>
		            </label>
		            <div>
		           	 	<label for="SalesRemarks" class="purchase-textarea">备注：</label>
		                <textarea class="form-text" required="required" rows="3" cols="55" id="_stockRemarks" placeholder="详细描述自留原因" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!--onclick="StockOrders()"-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
		             	<!--<input type="reset" class="btn btn-danger supbtn" value="重置" style="display: none;"/>-->
		            	<input type="submit" class="btn btn-danger supbtn" value="确定"/> 
		            </div>   
		          
		                <!-- onclick="StockOrders();" -->
		            <em>自留"<b style="color:red;font-weight:bold">已收</b>"订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
		        </form>
		    </div>
		</div>
		<!--订单自留end -->

		 <!-- 退回供应商start-->
		  <div class="popup ReturnOrders_box">
		<!--<div class="pop_box_bg ReturnOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>退回供应商</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_return">
		            <label class="checkbox-inline" style="display:none;">
		                <b id="_returnCustomerID"></b>
		            </label>
		            <div>
		            	<label for="SalesRemarks" class="purchase-textarea">备注：</label>
		                <textarea class="form-control form-text" rows="3" cols="45" id="_returnRemarks" placeholder="详细描述退货回供应商原因" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!--onclick="ReturnOrders()"-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" style="display: none;"/>
			            <input type="reset" class="btn btn-danger supbtn" value="重置"/>
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/> 
		            </div>   
		            <em>退回"<b style="color:red;font-weight:bold">已收</b>"订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
		        </form>
		    </div>
		</div>
		<!--退回供应商end -->     

        <!-- 订单兑率start-->
        <div class="popup ExchangeOrders_box">
        <!--<div class="pop_box_bg ExchangeOrders_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改采购汇率</h5>
                <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_exchange">
                    <div>
                        <label for="PurchaseExchangerate">采购汇率：</label>
                        <input type="number" value="" id="_purchaseRate" class="form-control list_search" name="PurchaseExchangerate"/>
                    </div>
                    <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>  <!-- onclick="ExchangeOrders()"-->
		            </div>                    <!-- onclick="ExchangeOrders();" -->
                </form>
            </div>
        </div>
        <!--订单兑率end --> 
        
        <!-- 收款start-->
        <div class="popup PayOrders_box" id="PayOrders_box">
		<!--<div class="pop_box_bg PayOrders_box">-->
		    <div class="pop" >
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>收款</h5>
				<form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_pay">
					<label class="checkbox-inline" style="display:none;">
						<b id="_payCustID"></b>
					</label>
					<div class="form-group" style="display: block;">
						<label>@Language.Get("应收金额"):</label>
						<span class="CurrentRMB"><b class="check_first stars_tip">0</b>￥&nbsp;&nbsp;&nbsp;@Language.Get("或")</span>
						<span class="CurrentUSD"><b class="check_second stars_tip">0</b>$</span>
					</div>
					<div class="form-group">
						<label for="Currency">@Language.Get("用户余额"):</label>
						<select class="form-control" name="Currency" id="_currency">
						</select>
					</div>
					<div class="form-group">
						<label for="Account">@Language.Get("选择银行"):</label>
						<select class="form-control" name="Account" id="_optionBank">
						</select>
					</div>
					<div class="form-group">
						<label for="Amount">@Language.Get("充入金额"):</label>
						<input type="number" class="form-control" id="_chargingAmount" name="Amount" placeholder="0" value="0" />
					</div>
					<div class="form-group" id="arrivalTime_inp" style="display:none">
						<label for="ArrivalTime">@Language.Get("到账日期"):</label>
						<input type="text" class="form-control date_input time_input" name="ArrivalTime" id="_accountTime" style="background-color:#fff"/>
					</div>
					<div class="form-group" id="remarks_inp" style="display:none">
						<label for="Remarks">@Language.Get("备注"):</label>
						<textarea class="form-text" id="_remarks2" name="Remarks"  cols="65" style="height:52px"></textarea>
					</div>

					<!-- onclick="PayOrders()"-->
					<div class="form-btn">
						<input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="@Language.Get("取消")" />
						<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
					</div>
				</form>
		    </div>
		</div>
		<!--收款end -->

        <!-- 收供应商退款start-->
        <div class="popup PayBackOrders_box">
        <!--<div class="pop_box_bg PayBackOrders_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>收款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_payback">  <!--  _cancel -->
                    <div>
                        <label>应收金额：</label>
                        <label class="checkbox-inline">
                            <b class="check_third" style="font-weight: bold; color: red;">0</b>￥ 
                        </label>
                    </div>
                    <div>
                        <label for="BankID">收款账户：</label>
                        <select id="_paybackBankID" class="form-control list_search" name="BankID"></select>
                    </div>
                    <div>
                        <label for="PayBackAmount">实收金额：</label>
                        <label class="checkbox-inline">
                            <input type="number" class="form-control" name="PayBackAmount" placeholder="总金额" id="_paybackAmount"/>
                        </label>
                    </div>
                    <div>
                    	<label for="ArrivalTime">收款日期：</label>
                    	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="收款日期" readonly id="paybackarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                    	 <!--<input type="text" class="date_input time_input" id="paybackarrivalTime" name="ArrivalTime" />-->
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>
                </form>
            </div>
        </div>
        <!--收供应商退款end -->

       
        <!--申请充值start-->
        <div class="popup Balance_box">
        <!--<div class="pop_box_bg Balance_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>申请充值人民币</h5>
                <form class="form-inline _balance" style="padding: 5px 5px 5px 30px;" method="post">
                    <label class="checkbox-inline" style="display:none;">
                        <input class="form-control" type="text" name="CustomerID" id="_custID" placeholder="客户ID" readonly="readonly" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">客户名字：</label>
                        <input class="form-control" type="text" name="RealName" id="_realName" placeholder="客户名字" readonly="readonly" />
                    </div>
                    <div class="form-group">
                    	<label for="Balance">当前余额：</label>
                        <input class="form-control" type="text" name="Balance" id="_bal" placeholder="客户当前余额" readonly="readonly" />
                    </div>

                    <div class="form-group">
                        <b style="vertical-align: top;">银行账户：</b>
                        <div class="account-radio" id="_bankID1"></div>
                    </div>
                    <div class="form-group">
                        <label for="Currency">结算币种：</label>
                        <input type="radio" name="Currency" value="1" checked="checked" style="width: 30px;"/>人民币
                    </div>
                    <div class="form-group">
                        <label for="Abstract">操作类型：</label>
                        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
                    </div> 
                    <div class="form-group">
                    	<label for="Amount"><b style="color:red;">交易金额：</b></label>
                        <input class="form-control" type="number" name="Amount" id="camount" placeholder="交易金额" />
                    </div>
                    <div class="form-group">
                    	<label for="ArrivalTime">到款日期：</label>
                    	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="carrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                        <!--<input type="text" class="date_input time_input" id="carrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">申请备注：</label>
                        <textarea class="form-text" rows="2" cols="40" id="cremarks" placeholder="" name="Remarks"></textarea>
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>
                </form>
            </div>
        </div>
        <!--申请充值end -->


        <!--申请美金充值start-->
        <div class="popup USDBalance_box">
        <!--<div class="pop_box_bg USDBalance_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>申请充值美金</h5>
                <form class="form-inline _usdbalance" style="padding: 5px 5px 5px 30px;" method="post">
                    <label class="checkbox-inline" style="display:none;">
                        <input class="form-control" type="text" name="CustomerID" id="_cuID" placeholder="客户ID" readonly="readonly" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">客户名字：</label>
                        <input class="form-control" type="text" name="RealName" id="_reName" placeholder="客户名字" readonly="readonly" />
                    </div>
                    <div class="form-group">
                    	<label for="USDBalance">当前余额：</label>
                        <input class="form-control" type="text" name="USDBalance" id="_usdbal" placeholder="客户当前余额" readonly="readonly" />
                    </div>
                    <div class="form-group">
                        <b style="vertical-align: top;">银行账户：</b>
                        <div class="account-radio" id="_usdbankID"></div>
                    </div>
                    <div class="form-group">
                        <label for="Currency">结算币种：</label>
                        <input type="radio" name="Currency" value="2" checked="checked" id="_usd" style="width: 30px;"/>美金
                    </div>
                    <div class="form-group">
                        <label for="Abstract">操作类型：</label>
                        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
                    </div>
                    <div class="form-group">
                    	<label for="Amount"><b style="color:red;">交易金额：</b></label>
                        <input class="form-control" type="number" name="Amount" id="cusdamount" placeholder="交易金额" />
                    </div>
                    <div class="form-group">
                    	<label for="ArrivalTime">到款日期：</label>
                    	<div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="cusdarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                        <!--<input type="text" class="date_input time_input" id="cusdarrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">申请备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="40" id="cusdremarks" placeholder="" name="Remarks" ></textarea>
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>     <!-- onclick="ApplyFlow();" -->
                </form>
            </div>
        </div>
        <!--申请美金充值end -->
        
         <!-- 修改运费start-->
         <div class="popup ModFreight_box">
		<!--<div class="pop_box_bg ModFreight_box">-->
		    <div class="pop pop-radius">
		        <span class="colse_popbox close-popup">X</span>
		        <h5>修改运费</h5>
		        <form class="form-inline _frei" style="padding: 5px 5px 5px 30px;" method="post" id="_frei">
		            <div class="form-group">
		                <label for="Freight">运费：</label>
		                <input class="form-control" required="required" type="text" id="_freight" name="Freight" placeholder="实际运费"/>
		            </div>
		          	<div class="confirm">  
		          		<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
		            	<input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
		            	<input type="submit" class="btn btn-danger supbtn" value="确定"/>  <!-- onclick="ModFreight()"-->
		            </div>
		        </form>
		    </div>
		</div>
		<!--修改运费end -->
        
      <!-- 确定删除start-->
      <div class="popup DelOrders_box">
        <!--<div class="pop_box_bg DelOrders_box">-->
            <div class="pop pop-radius">
            	<span class="colse_popbox close-popup">X</span>
                <h5>删除订单</h5>
                <form class="form-inline" method="post" id="">
                    <div class="form-group" style="display: none">
                        <label for="OrderID" class="checkbox-inline">订单IDs：</label>
                        <input type="text" class="form-control" id="_ids">
                    </div>
                    <div class="form-group" style="padding-left: 15px;">
                    	<div>删除后无法恢复，确定要删除订单吗？</div>
                    </div>
                    <div class="confirm" style="margin-left: 10%;"> 
	                    <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消"/>
	                    <!-- cancel为本页的css -->
	                    <button class="btn btn-danger supbtn btn_dis" onclick="DelOrders();">确定</button><br /> <!--disabled -->
                    </div>
                    <em style="padding-left: 15px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提醒：确定删除前，建议您导出一份订单作为备用；<b style="color:red">仅供管理员使用</b></em>
            	</form>
            </div>
        </div>
        <!--确定删除end -->

        <!--删除结果start -->
        <div class="pop_box_bg delorders">
            <div class="pop">
                <span class="colse_popbox">X</span>
                <h5>删除结果</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <em>成功：<b id="_succ"></b></em><br />
                    <em>失败：<b id="_fail"></b></em><br />
                    <br />
                    <em>失败原因：<b>订单不存在</b></em>
                </form>
            </div>
        </div>
        <!-- 删除结果end-->
		
		<!-- 出货start-->
		<div class="popup EditShip_box">
		<!--<div class="pop_box_bg EditShip_box">-->
		    <div class="pop pop-radius">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>订单出货</h5>
		        <form class="form-inline _ship" style="padding: 5px 5px 5px 30px;" method="post" id="_ship">
		        	<div>
		            	<label for="ShipRemarks" class="Remark-textarea">出货审核：</label>
		                <textarea class="form-control form-text" rows="3" cols="60" required="required" id="_shipRemarks" placeholder="审核结果和审核人签字" name="ShipRemarks"></textarea>
		            </div>
		            <div class="confirm">    
		            <!--onclick="EditShip()"-->
			            <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display: none;"/>
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>   
		             </div>
		            <em>为了降低风险，出货前请了解客户欠款</em>
		        </form>
		    </div>
		</div>
		<!--出货end --> 

        <!-- 联系方式start-->
        <div class="popup Contact_box">
        <!--<div class="pop_box_bg Contact_box">-->
            <div class="pop" style="height: 100%; width: 100%; overflow-y: auto;">
				<span class="colse_popbox close-popup">X</span>
                <h5>联系方式</h5>
                <form class="form-inline contact-form" style="padding: 5px 5px 30px 30px;">
                	<div class="form-group">
                    	<label for="ShortName">简称：</label>
                        <input class="form-control" type="text" name="ShortName" id="_shortName" placeholder="简称" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Company">全称：</label>
                    	<input class="form-control" type="text" name="Company" id="_company" placeholder="全称" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Name">联系人：</label>
                        <input class="form-control" type="text" name="Name" id="_name" placeholder="Name" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="QQ">QQ：</label>
                        <input class="form-control" type="text" name="QQ" id="_qq" placeholder="QQ" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Telephone">固话：</label>
                        <input class="form-control" type="text" name="Telephone" id="_telephone" placeholder="固话" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="WeChat">微信：</label>
                        <input class="form-control" type="text" name="WeChat" id="_wechat" placeholder="WeChat" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Email">邮箱：</label>
                        <input class="form-control" type="text" name="Email" id="_email" placeholder="Email" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Skype">Skype：</label>
                        <input class="form-control" type="text" name="Skype" id="_skype" placeholder="Skype" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="MobilePhone">手机：</label>
                        <input class="form-control" type="text" name="MobilePhone" id="_mobilephone" placeholder="MobilePhone" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Website">网站：</label>
                        <input class="form-control" type="text" name="Website" id="_website" placeholder="网站" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="RapID">RapID：</label>
                        <input class="form-control" type="text" name="RapID" id="_rapid" placeholder="RapID" disabled="disabled"/>
                    </div>
                    <div class="form-group" style="margin-left: 0;">
                    	<label for="Address">地址：</label>
                        <input class="form-control" type="text" name="Address" id="_address" placeholder="Address" disabled="disabled"/>
                    </div>
                </form>
            </div>
        </div>
        <!--联系方式end -->

        <!-- 充值start-->
        <div class="popup ReCharge_box">
        <!--<div class="pop_box_bg ReCharge_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>客户充值</h5>
                <form class="form-inline _re" style="padding: 5px 5px 5px 30px;" method="post" id="_re">
                    <label class="checkbox-inline" style="display: none">
                        <input class="form-control" type="text" name="CustomerID" id="_customerid" placeholder="客户号" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">客户名字：</label>
                        <input class="form-control" type="text" name="RealName" id="RealName" readonly="readonly" />                   	
                    </div>
					<div class="form-group">
                    	<label for="Balance">当前余额：</label>
                        <input class="form-control" type="text" name="Balance" id="Balance" readonly="readonly" />
                    </div>
                    <div class="form-group">
	                    <label for="PaymentModel">付款账户：</label>
	                    <div class="check_radio_box">
	                    	<label for="Alipay">
	                    		 <input id="Alipay" type="radio" name="PaymentModel" value="1" checked="checked"/>支付宝
	                    	</label>
	                       	<label for="WeChat">
	                        	<input id="WeChat" type="radio" name="PaymentModel" value="2"/>微信
	                       </label>
	                       	<label for="china_bank">
	                        	<input id="china_bank" type="radio" name="PaymentModel" value="3" />中行
	                       </label>
	                       <label for="agricultural_bank">
	                       		<input id="agricultural_bank" type="radio" name="PaymentModel" value="4" />农行
	                       </label>
	                        <label for="ICBC">
	                        	<input id="ICBC" type="radio" name="PaymentModel" value="5" />工行
	                        </label>
	                        <label for="ccb">
	                        	<input id="ccb" type="radio" name="PaymentModel" value="6" />建行
	                        </label>
	                        <label for="livelihood_bank">
	                        	<input id="livelihood_bank" type="radio" name="PaymentModel" value="7" />民生
	                        </label>
	                        <label for="Safety_bank">
	                        	<input id="Safety_bank" type="radio" name="PaymentModel" value="8" />平安
	                        </label>
	                        <label for="Discount_bank">
	                        	<input id="Discount_bank" type="radio" name="PaymentModel" value="9" />优惠额
	                        </label>
	                        <label for="Service_Charge">
	                        	<input id="Service_Charge" type="radio" name="PaymentModel" value="10" />手续费
	                        </label>
	                        <label for="cash">
	                        	<input id="cash" type="radio" name="PaymentModel" value="11" />现金 <!-- 11-11 -->
	                        </label>
	                        
	                    </div>
                    </div>
                    <div class="form-group">
                        <label for="OperationModel">充值操作：</label>
                        <select class="form-control" name="OperationModel" id="OperationModel">
                            <option value="0" selected="selected">申请充值</option>
                            <option value="1" id="_direct_opt">直接充值</option> <!-- 默认隐藏 -->
                        </select>
                    </div>
                    <div class="form-group">
                    	<label for="AmountOfMoney">充值金额：</label>
                        <input class="form-control" type="number" name="AmountOfMoney" id="AmountOfMoney" placeholder="本次充值金额" />
                    </div>
                    <div class="form-group">
                   		 <label for="AdddateTime">打款时间：</label>
                        <input type="text" class="date_input time_input" id="AdddateTime" placeholder="打款时间" name="AdddateTime" />
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">充值备注：</label>
                        <textarea class="form-control form-text" rows="4" cols="40" id="Remarks" placeholder="备注" name="Remarks"></textarea>
                    </div>
                    <div class="confirm">
                    	<input type="reset" class="btn btn-danger supbtn" value="重置"/>
                    	<input type="submit" class="btn btn-danger supbtn" value="确定" />
                    	<!-- onclick="AddCharge();" -->
                    </div>                   
                </form>
            </div>
        </div>
        <!--充值end -->

        <!--充值结果start 9-26 -->
        <div class="popup addcharge_box">
        <!--<div class="pop_box_bg addcharge_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>充值详情</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <em><b id="_add_result"></b></em>
                    <br />
                    <input type="button" class="btn btn-danger supbtn" value="继续充值" style="margin-left: 70px;" onclick="choice();" />
                    <input type="button" class="btn btn-danger supbtn" value="查看充值" onclick="ViewCharge();" />
                </form>
            </div>
        </div>
        <!-- 充值结果end-->       

        <!-- 自留手动回库start -->
        <div class="popup BackDia_box">
        <!--<div class="pop_box_bg BackDia_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>回统包库</h5>
				<form class="form-inline _backdia" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group" style="display:none;">
                        <label for="OrderID">订单号：</label>
                        <input type="text" class="form-control" id="_orID" placeholder="订单号" name="OrderID">
                    </div>
                    <div class="form-group" style="display:none;">
                        <label for="InventoryID">库存号：</label>
                        <input type="text" class="form-control" id="_invID" name="InventoryID">
                    </div>
						<div class="form-group">
							<label for="OriginSN">货号</label>
							<input type="text" class="form-control" id="originSN" maxlength="20" placeholder="货号" name="OriginSN">
						</div>
						<div class="form-group">
							<label for="Category">主石类型</label>
							<input type="text" class="form-control" id="category" placeholder="主石类型" name="Category" disabled="disabled">
						</div>	
						<div class="form-group">
							<label for="Shape">形状</label>
							<input type="text" name="Shape" id="shape" value="" class="form-control" placeholder="形状"/>
		                    <!--<select class="form-control" name="Shape" id="shape" disabled="disabled">     
		                            <option value="1">圆形</option>
		                            <option value="8">心形</option>
		                            <option value="5">椭圆形</option>
		                            <option value="6">梨形</option>
		                            <option value="10">垫形</option>
		                            <option value="3">祖母绿</option>
		                            <option value="7">马眼形</option>
		                            <option value="2">公主方</option>
		                            <option value="12">梯形</option>
		                            <option value="13">直方</option>
		                            <option value="11">其他</option>
		                    </select>-->
						</div>
						<div class="form-group">
							<label for="Place">所在地</label>
	                        <input type="text" name="Place" id="place" value="" class="form-control" placeholder="所在地"/>
	                        <!--<div class="locationBox">
			          			<div class="locationBox box_country" id="country" name="Country"></div>
			        		</div>
			        		<input type="text" name="State" placeholder="省份" id="state" style="width: 65px; height: 30px;"/>-->
						</div>
						<div class="form-group clarity">
							<label for="Clarity">净度</label>
							<input type="text" class="form-control" id="clarity" placeholder="净度" name="Clarity">
						</div>
						<div class="form-group clarityDesc">
							<label for="ClarityDesc">净度描述</label>
							<input type="text" class="form-control" id="clarityDesc" placeholder="净度描述" name="ClarityDesc">
						</div>

						<div class="form-group">
							<label for="Color">颜色</label>
							<input type="text" class="form-control" id="color" placeholder="颜色" name="Color" disabled="disabled">
						</div>
						<div class="form-group">
							<label for="ColorDesc">颜色描述</label>
	                        <input type="text" class="form-control" id="colorDesc" placeholder="颜色描述" name="ColorDesc">
						</div>
						<div class="form-group">
							<label for="Weight">总重</label>
							<input type="number" class="form-control" id="weight" placeholder="总重" name="Weight" readonly="readonly">
						</div>
						
						<div class="form-group">
							<label for="Supplier">供应商</label>
							<input type="text" class="form-control" id="supplier" placeholder="供应商" name="Supplier" readonly="readonly">
						</div>	
						<div class="form-group">
							<label for="Size">大小</label>
							<input type="text" class="form-control" id="size" placeholder="大小" name="Size">
						</div>
						<div class="form-group">
							<label for="SizeDesc">大小描述</label>
							<input type="text" class="form-control" id="sizeDesc" placeholder="大小描述" name="SizeDesc">
						</div>			
						
						<div class="legend">参数：</div>
							<div class="form-group CurrentUSD">
								<label for="OriginUSDPerGrain"><b class="start-red">*</b>采美金</label>
								<input type="number" class="form-control" maxlength="20" id="sourceUSDPerGrain" placeholder="原美金" name="OriginUSDPerGrain" readonly="readonly">
							</div>
							<div class="form-group CurrentUSD">
								<label for="BuyUSDPerGrain"><b class="start-red">*</b>买美金</label>
								<input type="number" class="form-control" maxlength="20" id="buyUSDPerGrain" placeholder="买美金" name="BuyUSDPerGrain" readonly="readonly">
							</div>
							<div class="form-group exchangeRate">
								<label for="PurchaseExchange">采汇</label>
								<input type="number" class="form-control" id="back_purchaseExchange" placeholder="采购汇率" name="PurchaseExchange">
							</div>
							<div class="form-group CurrentRMB">
								<label for="SourceRMBGrain"><b class="start-red">*</b>采RMB</label>
								<input type="number" class="form-control" id="sourceRMBGrain" placeholder="原RMB" name="SourceRMBGrain" readonly="readonly">
							</div>
							<div class="form-group CurrentRMB">
								<label for="BuyRMBGrain"><b class="start-red" class="start-red">*</b>买RMB</label>
								<input type="number" class="form-control" id="buyRMBGrain" placeholder="买RMB" name="BuyRMBGrain" readonly="readonly">
							</div>
					
					<div style="margin-top: 15px;"></div>
						<div class="form-radio" id="isStock">
							<label for="IsStock">出售方式</label>
							<span>
								<label for="_Stock">
									<input id="_Stock" type="radio" name="IsStock" value="1" checked="">现货
								</label>
								<label for="_Customized">
									<input id="_Customized" type="radio" name="IsStock" value="2">定制
								</label>							  	
							</span>
						</div>
						<div class="form-radio">
							<label>上架状态</label>
							<span id="onShelves">
								<label for="_onshelves">
									<input id="_onshelves" type="radio" name="OnShelves" value="1" checked="checked">上架
								</label>
								<label for="_offshelves">
									<input id="_offshelves" type="radio" name="OnShelves" value="0">下架 
								</label>	
							</span>							
						</div>
						<div class="remarks-group">
                			<label for="Remark">备注</label>
                			<textarea id="remark" name="Remark" placeholder="备注" class="form-text remarks-control" cols="65"></textarea>
                		</div>

                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn cancel" value="取消" name="q_x"  style="display: none;" />
	                    <input type="reset" class="btn btn-danger supbtn" value="重置" />
	                    <input type="submit" class="btn btn-danger supbtn" value="确定" />
                </div>
                </form>
            </div>
        </div>
        <!-- 自留手动回库end -->
		
		<!-- 采购订单start --->
		<div class="popup modify_pop_box">
        <!--<div class="pop_box_bg modify_pop_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>采购订单</h5>
                <form class="form-inline edit_form purchase_form" style="padding: 5px 5px 5px 30px;" method="post">
                    <div class="form-group" style="display: none">
                        <label for="OrderID">订单号：</label>
                        <input type="text" class="form-control" id="_purOrderID" placeholder="订单号" name="OrderID">
                    </div>
                    <div class="form-group" style="display: none">
                        <label for="OrderStatus">订单状态：</label>
                        <input type="text" class="form-control" id="_orderStat" placeholder="订单状态" name="OrderStatus">  <!--11-3 采购和修改采购 -->
                    </div>
                    <div class="form-group">
                        <label for="OriginSN"><b style="color:red;font-weight:bold;">*</b>货号：</label>
                        <input type="text" class="form-control" id="_purOriginSN" placeholder="货号" name="OriginSN" disabled="disabled">
                    </div>
                    <div class="form-group">
                        <label for="Category"><b style="color:red;font-weight:bold;">*</b>类别：</label>
                        <select class="form-control" name="Category" id="_purCategory" disabled="disabled">
                            <option value="">类别</option>
                            <option value="1">白钻</option>
                            <option value="2">彩钻</option>
                            <option value="3">红宝</option>
                            <option value="4">蓝宝</option>
                            <option value="5">祖母绿</option>
                            <option value="6">坦桑</option>
                            <option value="7">碧玺</option>
                        </select>
                    </div>
                    <div class="form-group">
							<label for="Shape"><b style="color:red;font-weight:bold;">*</b>形状：</label>
							<select class="form-control" name="Shape" id="_purShape" disabled="disabled">
								<option value="">形状</option>
								<option value="1">圆形</option>
								<option value="8">心形</option>
								<option value="5">椭圆形</option>
								<option value="6">梨形</option>
								<option value="10">垫形</option>
								<option value="3">祖母绿</option>
								<option value="7">马眼形</option>
								<option value="2">公主方</option>
								<option value="12">梯形</option>
								<option value="13">直方</option>
								<option value="11">其他</option>
							</select>
					</div>
                    <div class="form-group">
                        <label for="Size"><b style="color:red;font-weight:bold;">*</b>大小：</label>
                        <input type="text" class="form-control" id="_purSize" placeholder="大小" name="Size" disabled="disabled" />
                    </div>
                    <div class="form-group">
                        <label for="SizeDesc">大小描述：</label>
                        <input type="text" class="form-control" id="_purSizeDesc" placeholder="大小描述" name="SizeDesc" disabled="disabled" />
                    </div>
                    <div class="form-group">
                        <label for="Color"><b style="color:red;font-weight:bold;">*</b>颜色：</label>
                        <input type="text" class="form-control" id="_purColor" placeholder="颜色" name="Color" disabled="disabled" />
                    </div>
                    <div class="form-group">
                        <label for="ColorDesc">颜色描述：</label>
                        <input type="text" class="form-control" id="_purColorDesc" placeholder="颜色描述" name="ColorDesc" disabled="disabled" />
                    </div>
                    <div class="form-group clarity">
                        <label for="Clarity"><b style="color:red;font-weight:bold;">*</b>净度：</label>
                        <select class="form-control" name="Clarity" id="_purClarity" disabled="disabled">
                            <option value="">净度</option>
                        	<option value="VVS">VVS</option>
                        	<option value="VS1-VS2">VS1-VS2</option>
                        	<option value="VS2-S1">VS2-S1</option>
                        	<option value="VS2-SI1">VS2-SI1</option>
                        	<option value="SI1-SI2">SI1-SI2</option>
                        	<option value="SI2-SI3">SI2-SI3</option>
                        	<option value="SI3-P1">SI3-P1</option>
                        	<option value="P2-P3">P2-P3</option>
                        </select>
                    </div>
                    <div class="form-group clarityDesc">
                        <label for="ClarityDesc">净度描述：</label>
                        <input type="text" class="form-control" id="_purClarityDesc" placeholder="净度描述" name="ClarityDesc" disabled="disabled"/>
                    </div>
                    
                    <!-- <div class="form-group">
                        <label for="Weight">总重：</label>
                        <input type="number" class="form-control" id="_purWeight" placeholder="总重" name="Weight">
                    </div>          -->
					<div class="form-group">
                        <label for="Weight">购买重量：</label>
                        <input type="number" class="form-control" id="_purInventoryCount" placeholder="购买重量" name="InventoryCount">
                    </div> 
                    <div class="form-group form-country" style="display: none;">
                    	<label for="Country"><b style="color:red;font-weight:bold;">*</b>所&nbsp;在&nbsp;地：</label>
	                    <div class="locationBox">
	          				<div class="locationBox box_country" id="_purCountry" name="Country"></div>
	        			</div>
	        			<input type="text" name="State" placeholder="省份" id="_purState" style="width: 65px; height: 30px;"/>
                    </div>
                     <!-- <div class="form-group">
                        <label for="IsStock">出售方式：</label>
                        <select class="form-control" name="IsStock" id="_purIsStock">
                            <option value="">出售方式</option>
                            <option value="1">现货</option>
                            <option value="2">定制</option>
                        </select>
                    </div>  -->
                    <!--<div class="form-group">
                        <label for="ConfirmPrice">价格：</label>
                        <input type="number" class="form-control" id="_price" placeholder="价格" name="ConfirmPrice" />
                    </div>-->
                    
                    <div class="form-group">
                            <label for="Supplier">供应商：</label>
                            <input type="text" class="form-control" id="_purSupplier" placeholder="供应商" name="Supplier" disabled="disabled"/>
                    </div>
                    <div class="form-group PurexchangeRate">
		                <label for="PurchaseExchange">采汇：</label>
		                <input type="number" class="form-control" id="_purchaseExchange" placeholder="采购汇率" name="PurchaseExchange">
		                <p class="purchase-tip" style="display: none;">(采购汇率)</p>
		            </div>
		            <div class="form-group PurCurrentUSD">
		                <label for="PriceUSD"><b style="color:red;font-weight:bold;">*</b>买$/Ct：</label>
		                <input type="text" class="form-control" id="_buyPriceUSD" placeholder="买入美金总价" name="PriceUSD"/>
		                        <!--<p class="purchase-tip">(彩钻以买$为准)</p>-->
		            </div> 
		            <div class="form-group PurCurrentRMB">
		                    <label for="PurchaseRMB"><b style="color:red;font-weight:bold;">*</b>买￥/Ct：</label>
		                    <input type="number" class="form-control" id="_buyPrice" placeholder="以￥结算时请不要空" name="PurchaseRMB">
		            </div>
		             <!--<div class="form-group" style="width: 100%">-->
	                   	<!--<label for="DeliveryTime" style="width: auto;"><b style="color:red;font-weight:bold;">*</b>发货日期：</label>-->
	                   	 <!--<div class="list-block" style="margin: 0;">-->
							<!--<ul>-->
							    <!--<li>-->
							      <!--<div class="item-content" style="padding-left: 0;">-->
							        <!--<div class="item-inner">-->
							          <!--<div class="item-input">-->
							            <!--<input type="text" class="date_input time_input" name="DeliveryTime" placeholder="发货日期" readonly id="_deliveryTime" required="required">-->
							          <!--</div>-->
							        <!--</div>-->
							      <!--</div>-->
							    <!--</li>-->
							<!--</ul>-->
						<!--</div>-->
	            	<!--</div>-->
                    <div style="clear: both;"></div> 
                    <div class="remarks-group" style="display: none">
                        <label for="Descript" class="purchase-text">其他描述：</label>
                        <textarea id="_descript" name="Descript" placeholder="其他描述" class="form-text" cols="65"></textarea>
                    </div>
                    <div class="remarks-group" style="margin:12px 15px">
                        <label for="PurchaseRemarks" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>采购备注：</label>
                        <textarea id="_PurchasesRemarks" name="PurchaseRemarks" placeholder="采购备注" class="form-text" cols="65"></textarea>
                   </div>
                    <div class="confirm">
	                    <input type="reset" class="btn btn-danger supbtn" value="重置" />
	                    <input type="submit" class="btn btn-danger supbtn" value="确定" /> <!-- onclick="EditRingOrderInfo(this);" -->
                	</div>
                    
                </form>
            </div>
        </div>
        <!-- 采购订单end ---> 
        
        @*弹框end*@
        
		
		</div>
		</div>

    </body>

</html>
@Html.Partial("commonTeamJs")
<script type="text/javascript" src="~/Js/title_scroll/flexible.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/iscroll.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/navbarscroll.js"></script>
<script>
	var APP=is_app();
    //获取用户id，只能写在页面上，在外部的js没有用
    var PARAMS=@Html.Raw(ViewBag.Param);
    if(APP){
	 	PARAMS=eval('('+PARAMS+')');
	 }

    var roid=$.cookie("RoleID");
    //只有管理员和物流 副管能操作确认到货,取消到货,运费
    if( roid==1|| roid == 5 || roid == 6){
        $(".ArrivalOrders,.CancelArrivalOrders,.ModFreight").show();
    }else{
        $(".ArrivalOrders,.CancelArrivalOrders,.ModFreight").hide();
    }
	//管理员能看到所有权限控制的
	if(roid==1){
		$('.team_parcels_btn_transfer,.team_parcels_btn_revise,.team_parcels_btn_arrived,.team_parcels_btn_cancel_arrived,' +
				'.team_parcels_btn_pay,.team_parcels_btn_freight,.team_parcels_btn_invalid,.team_parcels_btn_prepare,' +
				'.team_parcels_btn_ship,.team_parcels_btn_receipt,.team_parcels_btn_stock,.team_parcels_btn_back,' +
				'.team_parcels_btn_del,.team_parcels_btn_RemarkOrder').show();
	}
</script>
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery-ui.min.js"></script>
<script src="~/Js/team/orderValidate.js?v=@Wholesaler.Common.Version.Get"></script>  <!--表单输入验证-->
<script>
    var calendarDateFormat = myApp.calendar({
        input: '#_accountTime',
        monthNames: ['01'+_(''+_('月')), '02'+_('月'), '03'+_('月'), '04'+_('月'), '05'+_('月'), '06'+_('月'), '07'+_('月'), '08'+_('月') , '09'+_('月') , '10'+_('月'), '11'+_('月'), '12'+_('月')],
        dayNamesShort: [_('日'), _('一'), _('二'), _('三'), _('四'), _('五'), _('六')],
        closeOnSelect:true,
    });
</script>
<script src="~/Js/Team/commonOrder.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/Team/parcelOrder.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>